<template>
  <div class="collect-wrapper">
    收藏
    <CarListItem :list="collectArr"></CarListItem>
  </div>
</template>
<script>
import { mapState } from 'vuex'
import CarListItem from '@/components/CarListItem.vue'
// mapState - computed配合使用
export default {
  name: 'collect',
  components: { CarListItem },
  data() {
    return {}
  },
  computed: {
    ...mapState(['collectArr']),
  },
}
</script>
